package org.liu.knowledge;

import dev.langchain4j.model.openai.OpenAiChatModel;

public class Main {
    public static void main(String[] args) {

        OpenAiChatModel model = OpenAiChatModel.builder()
                .apiKey("apiKey")
                .baseUrl("http://localhost:11434/")
                .modelName("deepseek-r1:14b")
                .build();
        String content = model.chat("你好啊");
        System.out.println(content);
    }
}